package com.demo.springBoot2.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 群组
 * </p>
 *
 * @author wuHua·pl
 * @since 2024-03-27
 */
@Getter
@Setter
@ApiModel(value = "Groups对象", description = "群组")
public class Groups implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("群组ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("群名")
    private String groupName;

    @ApiModelProperty("群简介")
    private String description;

    @ApiModelProperty("组创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("0 在线 1 注销")
    private Integer flag;
}
